<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Схема разработана Управлением актуализации и модернизации руководств по структурированным электронным медицинским документам (СЭМД) 2023 -->
<!-- Включены элементы разработанные Health Level Seven -->
<xsd:schema xmlns="urn:hl7-org:v3" xmlns:address="urn:hl7-ru:address" xmlns:fias="urn:hl7-ru:fias" xmlns:identity="urn:hl7-ru:identity" elementFormDefault="qualified" targetNamespace="urn:hl7-org:v3" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import schemaLocation="fias.xsd" namespace="urn:hl7-ru:fias" />
  <xsd:import schemaLocation="address.xsd" namespace="urn:hl7-ru:address" />
  <xsd:import schemaLocation="identity.xsd" namespace="urn:hl7-ru:identity" />
  <xsd:include schemaLocation="coreschemas/datatypes.xsd" />
  <xsd:include schemaLocation="coreschemas/voc.xsd" />
  <xsd:include schemaLocation="coreschemas/NarrativeBlock.xsd" />
  <xsd:complexType name="POCD_MT000040.Component2">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="structuredBody" type="structuredBody_176" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="structuredBody_176">
    <xsd:sequence>
      <xsd:element minOccurs="4" maxOccurs="unbounded" name="component" type="component_177" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="component_177">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="section" type="section_178" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="section_178">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_179" />
      <xsd:element minOccurs="1" maxOccurs="1" name="title" type="ST" />
      <xsd:element minOccurs="1" maxOccurs="1" name="text" type="StrucDoc.Text" />
      <xsd:element minOccurs="1" maxOccurs="16" name="entry" type="entry_182" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_179">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="DOCINFO" />
          <xsd:enumeration value="EXAMINFO" />
          <xsd:enumeration value="RESINSTR" />
          <xsd:enumeration value="RESLAB" />
          <xsd:enumeration value="CATINFO" />
          <xsd:enumeration value="RESINFO" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.197" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entry_182">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_183" />
        <xsd:element minOccurs="1" maxOccurs="1" name="organizer" type="organizer_269" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="observation_183">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_184" />
      <xsd:choice minOccurs="0">
        <xsd:element minOccurs="1" maxOccurs="1" name="text" type="ED" />
        <xsd:element minOccurs="1" maxOccurs="1" name="effectiveTime" type="effectiveTime_206" />
      </xsd:choice>
      <xsd:element minOccurs="0" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="1" name="performer" type="performer_208" />
      <xsd:element minOccurs="0" maxOccurs="1" name="reference" type="reference_238" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="negationInd" type="bl" use="optional"/>
  </xsd:complexType>
  <xsd:complexType name="code_184">
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1070" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1471" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_206">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="performer_208">
    <xsd:sequence>
      <xsd:element minOccurs="0" maxOccurs="1" name="modeCode" type="modeCode_209" />
      <xsd:element minOccurs="1" maxOccurs="1" name="assignedEntity" type="assignedEntity_210" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="modeCode_209">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.368" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="assignedEntity_210">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="2" name="id" type="id_211" />
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_213" />
      <xsd:element minOccurs="0" maxOccurs="1" name="addr" type="AD" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="telecom" type="telecom_221" />
      <xsd:element minOccurs="1" maxOccurs="1" name="assignedPerson" type="assignedPerson_222" />
      <xsd:element minOccurs="0" maxOccurs="1" name="representedOrganization" type="representedOrganization_227" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="id_211">
    <xsd:attribute name="root" type="uid" use="optional" />
    <xsd:attribute name="extension" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="code_213">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1002" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="telecom_221">
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="value" type="url" use="required" />
    <xsd:attribute name="use" type="set_TelecommunicationAddressUse" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="assignedPerson_222">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="name" type="name_223" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="name_223">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="family" type="st" />
      <xsd:element minOccurs="1" maxOccurs="1" name="given" type="st" />
      <xsd:element minOccurs="0" maxOccurs="1" ref="identity:Patronymic" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="representedOrganization_227">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="id" type="id_228" />
      <xsd:element minOccurs="1" maxOccurs="1" name="name" type="ON" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="telecom" type="telecom_230" />
      <xsd:element minOccurs="0" maxOccurs="1" name="addr" type="AD" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="EntityClassOrganization">
          <xsd:enumeration value="ORG" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_228">
    <xsd:attribute name="root" type="uid" use="required" />
    <xsd:attribute name="extension" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="telecom_230">
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="value" type="url" use="required" />
    <xsd:attribute name="use" type="set_TelecommunicationAddressUse" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="reference_238">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="externalDocument" type="externalDocument_239" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipExternalReference">
          <xsd:enumeration value="REFR" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="externalDocument_239">
    <xsd:sequence>
      <xsd:element minOccurs="2" maxOccurs="2" name="id" type="id_240" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassDocument">
          <xsd:enumeration value="DOCCLIN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_240">
    <xsd:attribute name="root" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:pattern value="[0-2](\.(0|[1-9][0-9]*))*.51|1.2.643.5.1.13.13.17.1.1"/>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="extension" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="organizer_269">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="statusCode" type="statusCode_270" />
      <xsd:element minOccurs="1" maxOccurs="unbounded" name="component" type="component_271" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryOrganizer">
          <xsd:enumeration value="CLUSTER" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="statusCode_270">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="completed" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="component_271">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="organizer" type="organizer_272" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="ActRelationshipHasComponent">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="organizer_272">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_273" />
      <xsd:element minOccurs="1" maxOccurs="1" name="statusCode" type="statusCode_275" />
      <xsd:element minOccurs="2" maxOccurs="unbounded" name="component" type="component_276" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryOrganizer">
          <xsd:enumeration value="BATTERY" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_273">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="originalText" type="ED" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="statusCode_275">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="completed" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="component_276">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_277" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="ActRelationshipHasComponent">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_277">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_278" />
      <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
      <xsd:element minOccurs="0" maxOccurs="1" name="effectiveTime" type="effectiveTime_287" />
      <xsd:element minOccurs="0" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="1" name="interpretationCode" type="interpretationCode_290" />
      <xsd:element minOccurs="0" maxOccurs="1" name="reference" type="reference_279" />
      <xsd:element minOccurs="0" maxOccurs="1" name="referenceRange" type="referenceRange_291" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_278">
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1080" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="reference_279">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="externalDocument" type="externalDocument_280" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipExternalReference">
          <xsd:enumeration value="REFR" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="externalDocument_280">
    <xsd:sequence>
      <xsd:element minOccurs="2" maxOccurs="2" name="id" type="id_281" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassDocument">
          <xsd:enumeration value="DOCCLIN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_281">
    <xsd:attribute name="root" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:pattern value="[0-2](\.(0|[1-9][0-9]*))*.51|1.2.643.5.1.13.13.17.1.1"/>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="extension" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_287">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="interpretationCode_290">
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.257" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="referenceRange_291">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observationRange" type="observationRange_292" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="observationRange_292">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="text" type="ST" />
      <xsd:element minOccurs="0" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="1" maxOccurs="1" name="interpretationCode" type="interpretationCode_299" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="interpretationCode_299">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.257" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
</xsd:schema>